#!/usr/bin/env python
# -*- mode: Python; coding: utf-8 -*-
#
# FastCGI wrapper for Streamux to run managed by Apache2.

import os
import os.path
import sys

import settings_private

sys.path.insert(0, os.path.abspath(settings_private.SITE_ROOT + '/..'))
os.chdir(settings_private.SITE_ROOT)
os.environ['DJANGO_SETTINGS_MODULE'] = 'streamux.settings'

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method='threaded', daemonize='false')
